# -*- coding: utf-8 -*-
"""
电脑有品牌，价格，颜色，屏幕大小等属性，定义并测试电脑对象，并输出
"""
class box:
    def __init__(self,name,price,color,pub):
        self.name=name
        self.price=price
        self.color=color
        self.pub=pub
        
        
        
    def mz(self):
        return self.name
    def cbs(self):
        return self.price
    def zz(self):
        return self.color
    def cbrq(self):
        return self.pub
        
    
        
    
if __name__ == '__main__': 
    a=box('菠萝电脑','19999','蓝色','38寸')
    print(a.mz())
    print(a.cbs())
    print(a.zz())
    print(a.cbrq())
    
